/* eslint quotes: 0 */
import React, {PureComponent} from "react";
import {
    Dimensions,
    StyleSheet,
    View,
    Text,
    Button,
    StatusBar,
    TouchableOpacity,
    Image,
    TextInput,
    FlatList,
    SafeAreaView,
    ToastAndroid
} from "react-native";


const {height} = Dimensions.get('window')

type Props = {
    source:any,
    tip:string,
    height:number,
}
export default class CommonEmptyView extends PureComponent<Props> {

    render() {

        return (
            <View style={ [styles.container,{height:this.props.height}] }>
                <Image style={{width:90,height:70}}
                       source={this.props.source}/>
                <Text style={{fontSize:12,color:'#999999',fontWeight:'bold',marginTop:12}}>{this.props.tip}</Text>
            </View>
        );
    }


}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        alignItems: 'center',
        justifyContent:'center',
    },
});
